package guijavacommander.actions;

import guijavacommander.FilePanel;

import javax.swing.*;
import java.awt.event.ActionEvent;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

/**
 * User: Deady
 * Date: 16.07.2009
 * Time: 12:18:40
 */
public class RefreshAction extends AbstractAction{

    private FilePanel panel;
    private Log logger = LogFactory.getLog(RefreshAction.class);

    public RefreshAction(FilePanel panel) {
        this.panel = panel;
    }

    public void actionPerformed(ActionEvent e) {
        logger.debug("refreshing");
        panel.refresh();
        //TotalCommander.instance.getActivePanel().refresh();
    }
}
